﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OgonPhonesXML.Aastra.Serializer
{
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.3038")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
    [System.Xml.Serialization.XmlRootAttribute(Namespace = "", IsNullable = false)]
    public partial class AastraIPPhoneExecute
    {
        private AastraIPPhoneExecuteExecuteItem[] executeItemField;
        private List<AastraIPPhoneExecuteExecuteItem> listExecuteItem = new List<AastraIPPhoneExecuteExecuteItem>();

        private string beepField;

        private string triggerDestroyOnExitField;

        public AastraIPPhoneExecute()
        {
            this.beepField = "no";
            this.triggerDestroyOnExitField = "no";
        }
        public void addExecuteItem(string interruptCall, string uri)
        {
            AastraIPPhoneExecuteExecuteItem psvItem = new AastraIPPhoneExecuteExecuteItem();
            psvItem.interruptCall = interruptCall;
            psvItem.URI = uri;
            listExecuteItem.Add(psvItem);
        }
        /// <comentarios/>
        [System.Xml.Serialization.XmlElementAttribute("ExecuteItem", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public AastraIPPhoneExecuteExecuteItem[] ExecuteItem
        {
            get
            {
                this.executeItemField = listExecuteItem.ToArray();
                return this.executeItemField;
            }
            set
            {
                this.executeItemField = value;
            }
        }

        /// <comentarios/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute("no")]
        public string Beep
        {
            get
            {
                return this.beepField;
            }
            set
            {
                this.beepField = value;
            }
        }

        /// <comentarios/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        [System.ComponentModel.DefaultValueAttribute("no")]
        public string triggerDestroyOnExit
        {
            get
            {
                return this.triggerDestroyOnExitField;
            }
            set
            {
                this.triggerDestroyOnExitField = value;
            }
        }
    }
}
